//
//  UIFont+Extension.m
//  iOS Object
//
//  Created by 保密 on 2019/6/29.
//  Copyright © 2019年 XiaoHaiBao. All rights reserved.
//

#import "UIFont+Extension.h"

@implementation UIFont (Extension)

+ (void)getFontFamilyNames {
    NSArray * array = [UIFont familyNames];
    
    for( NSString *familyName in array ){
        printf( "Family: %s \n", [familyName UTF8String] );
        NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName];
        for(NSString *fontName in fontNames ){
            printf( "\tFont: %s \n", [fontName UTF8String] );
        }
    }
}

@end
